package top.caoayu.service.impl;

import lombok.Data;
import org.springframework.stereotype.Service;
import top.caoayu.dao.UserDaoImpl;
import top.caoayu.pojo.User;

import javax.annotation.Resource;
import java.util.List;

@Data
@Service
public class UserServiceImpl {
    @Resource
    private UserDaoImpl userDao;

    public List<User> findAll() {
        return userDao.findAll();
    }

}
